package cn.dakaqi.volunteer.tag;

import cn.dakaqi.entities.PlatformGroup;
import cn.dakaqi.entities.Volunteer;
import cn.dakaqi.utils.exception.ServiceRuntimeException;

import java.util.List;

/**
 * Created by chunyang on 2016/6/5.
 */
public interface PlatformGroup2Service
{
    void save(long groupId,long platformId,String parentCode,int status,List<Volunteer> volunteers)throws ServiceRuntimeException;
    void save(PlatformGroup platformGroup,List<Volunteer> volunteers)throws ServiceRuntimeException;
    void update(PlatformGroup platformGroup)throws ServiceRuntimeException;
    void delGroupAndPlat(long groupId,long platformId)throws ServiceRuntimeException;
    List<PlatformGroup> findByGroup(long group)throws ServiceRuntimeException;
    PlatformGroup findByGroupAndPlat(long group,long platfrom)throws ServiceRuntimeException;
    List<PlatformGroup> findByPlat(long platform)throws ServiceRuntimeException;
    void delById(long id)throws ServiceRuntimeException;
}
